Chris Pollett > Old Classes >
CS185c

( Print View )

Student Corner:
  [Grades Sec3]

  [Submit Sec3]

  [Class Sign Up Sec3]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW/Quiz Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HWs and Quizzes:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Quizzes]  [Project]

Practice Exams:
  [Mid]  [Final]

                           












HW#3 --- last modified February 17 2019 19:31:11..

Solution set.

Due date: Nov 1

Files to be submitted:
  Hw3.zip

Purpose: To experiment more with views and more UI components, to create an app that uses a WebService.

Related Course Outcomes:

LO2 -- Write a mobile application that involves GUI components and makes use of touch events to manipulate these components.

LO3 -- Write a mobile application that uses the mobile devices Networking or Telephony APIs.

Specification:

For this homework I want you to create an app that allows you to hunt for news stories related to what is typed into a search text box. To do this you will use the Yahoo News API:

http://developer.yahoo.com/search/news/V1/newsSearch.html

On the initial screen of your app, you should have a cool title. There should also be a search textfield and a Go button, and either a Table, ListView, or ListBox (depending on your device.). Here screen is my abstract term for what is initially displayed to the user when they open your app and everything is loaded. The initial screen should look sane in any orientation (you might need to use two view objects to implement this). When the user types in a search term and taps go, the table/list should be populated by the top 5 items returned by the Yahoo News! api for that term. Links in the items that are returned, should appear in your table/list, and should be clickable. Clicking such a link does not leave the app but switches to a different view where a WebView or your device's analogous feature is used to display the web page. The transition between these two views should be animated if your device supports this. Your app should also have a toolbar that allows you to switch between the view with the WebView on it and the original view with the search box. Finally, your app should remember the last WebView between times it is run by using some kind of persistence. If your device supports sqlite use that. If you have an iPhone use Core Data. If you have a Windows phone make use of Linq somewhere nontrivial in your project.

Point Breakdown

Code formatted and documented reasonably (uses departmental coding guidelines for Java in the Android case) 1pt
Initial screen is as described 1pt
WebView screen (or analogous screen for other devices) is as described 1pt
Auto-rotation works reasonably 1pt
Table/List populated as described when go button clicked 1pt
Code to access Yahoo API works as described 2pts
Links in Table/List work as described. 1pt
Toolbar is works as described and transitions animated if possible. 1pt
WebView peristence works as described. 1pt
Total10pts